﻿using System;
using System.Linq.Expressions;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace PmpNetwork.Extensions
{
    public static class UrlHelperExtensions
    {
        public static string WikiUrl(this UrlHelper urlHelper, string name)
        {
            return urlHelper.Action("Index", "Wiki", 
                new RouteValueDictionary {
                            {"area", "PmpNetwork"},
                            {"controller", "Wiki"},
                            {"name", UrlUtilities.UrlFriendlyString(name)},
                            {"action", "Index"}
                        });
        }
    }
}